package com.kitten.vectorstoresearch.service;

import com.kitten.vectorstoresearch.model.res.SearchResult;

import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;

/**
 * @author kitten
 */
public interface SearchResultContentFetcherService {

    /**
     * 批量查询 html 内容
     * @param searchResults
     * @param timeout
     * @param unit
     * @return
     */
    CompletableFuture<List<SearchResult>> batchFetch(List<SearchResult> searchResults,
                                                     long timeout,
                                                     TimeUnit unit);

}
